package com.example.demo.study.designmode.creational.factory;

public class Client {
    public static void main(String[] args) {
        IProduct pa=Factory.getProduct("ProductA");
        System.out.println(pa.get());
        IProduct pb=Factory.getProduct("ProductB");
        System.out.println(pb.get());
    }
}
